package com.example.service;

import com.example.pojo.entity.Goods;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface GoodsService {
    void insert(Goods goods);

    void updateById(Goods goods);

    void removeById(Integer id);

    void removeBatchByIds(List<Integer> ids);

    List<Goods> list();

    Goods getById(Integer id);

    PageInfo<Goods> selectByPage(Integer pageNum, Integer pageSize, String name, Integer state);
}
